<?php

namespace workin\assets;

use yii\web\AssetBundle;

/**
 * Main workin application asset bundle.
 */
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.less',
        YII_ENV == 'prod'?'https://cdn.bootcss.com/toastr.js/2.1.4/toastr.min.css':'https://cdn.bootcss.com/toastr.js/2.1.4/toastr.css',
        'https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/css/select2.min.css',
    ];
    public $js = [
        YII_ENV == 'prod'?'https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js':'https://cdn.jsdelivr.net/npm/vue',
        YII_ENV == 'prod'?'https://cdn.bootcss.com/axios/0.19.0/axios.min.js':'https://cdn.bootcss.com/axios/0.19.0/axios.js',
        'https://cdn.bootcss.com/toastr.js/2.1.4/toastr.min.js',
        'https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/js/select2.min.js'
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
    ];
}
